package cn.oversky.eom.exception;

/**
 * Created by ye on 2019/3/12.
 */
public class EomException  extends RuntimeException {

    private String code;

    private String detail;

    private EomException(){}

    public EomException(EomExceptionEnum tpee, String... detailArgs ) {
        super( tpee.getDetail( detailArgs ));
        this.code = tpee.getCode();
        this.detail = tpee.getDetail( detailArgs );
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

}
